package com.zpl.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "MEMBER-SERVICE")
public interface MemberFeign {
    @GetMapping("/member/getUserName")
    String getUserName(@RequestParam("username") String username);
    @PostMapping("/member/memberidfeign")
    Long getUserIdByTokenFeign(String phone);
}
